/**
 * 功能描述 
 */

define(function (require, exports, module) {
	var CountGrid = require("grid");
	var contractStat = require("../store/contractStat");	
					
    var instance = {
        initComponent: function (params,widget) {
        	var countgrid = new CountGrid({
        		parentNode:".J-countgrid",
        		autoRender : false,
        		url:"api/travelcontract/queryContractValid",        		
        		model:{
        			
        			id:"countgrid",
        			allowEdit:false,
        			columns:[{
        				name:"contractNo",
        				label:"合同号",
        			},
        			{
        				name:"memberName",
        				label:"会员",
        			},
        			{
        				name:"memberSex",
        				label:"性别",
        			        				
        			},
        			{
        				name:"phone",
        				label:"联系电话",
        			},
        			{
        				name:"productName",
        				label:"签约产品",
        			},
        			{
        				name:"productTypeName",
        				label:"产品类型",
        			},
        			{
        				name:"number",
        				label:"购买份数",
        			},
        			{
        				name:"singUpDate",
        				label:"签约日期",
        				format:"date",
        			},{
        				name:"allPay",
        				label:"签约金额"
        				
        			}]
        			
        		}
        	});  
        	widget.set("countgrid",countgrid);
        }
    };
    module.exports = instance;
});
